package org.resotc.dao;

import java.util.HashMap;

import org.resotc.model.Lane;

public interface LaneDAO {
	
	/**
	 * Returns a Lane due to a transfered id.
	 * @param id
	 * @return
	 */
	public Lane getLane(int id);
	
	/**
	 * Returns a HashMap full of Lanes.
	 * @return
	 */
	public HashMap<Integer, Lane> getLanes();
	
	/**
	 * Creates a new lane.
	 * @param lane
	 */
	public void createLane(Lane lane);
	
	/**
	 * Updates a existing lane.
	 * @param lane
	 */
	public void updateLane(Lane lane);
	
	/**
	 * Deletes a lane.
	 * @param id
	 */
	public void deleteLane(int id);
	
	/**
	 * Returns true or false whether a lane exists or not.
	 * @param id
	 * @return
	 */
	public boolean laneExists(int id);
}
